class Player:
    mark = 0
    name = None
    HP = 0
    MP = 0
    money = 0
    level = 0
    equipment = []
    goods = []

    def __init__(self, mark, name):
        self.mark = mark
        self.name = name
        self.HP = 100
        self.MP = 100
        self.money = 1000
        self.level = 0
#        self.equipment = [weapons[0], ornaments[0], armors[0]]
        self.goods = []


# 人物初始化
player0 = Player(0, 'zzq')


class Equipment:
    mark = 0
    name = None
    ATK = 0
    DEF = 0
    lucky = 0

    def __init__(self, mark, name, ATK, DEF, lucky):
        self.mark = mark
        self.name = name
        self.ATK = ATK
        self.DEF = DEF
        self.lucky = lucky


weapon00 = Equipment(0, '普通的剑', 2, 0, 0)
weapon01 = Equipment(1, '一般的剑', 5, 0, 0)
weapon02 = Equipment(2, '林科大圣剑', 10, 0, 0)
weapon03 = Equipment(3, '全村最好的剑', 30, 0, 0)
weapons = [weapon00, weapon01, weapon02, weapon03]

ornament00 = Equipment(0, '普通的项链', 0, 0, 0.1)
ornament01 = Equipment(1, '一般的项链', 0, 0, 0.2)
ornament02 = Equipment(2, '美丽的项链', 0, 0, 0.5)
ornament03 = Equipment(3, '天选之人', 0, 0, 1)
ornaments = [ornament00, ornament01, ornament02, ornament03]

armor0 = Equipment(0, '普通的防具', 0, 2, 0)
armor1 = Equipment(1, '一般的防具', 0, 2, 0)
armor2 = Equipment(2, '牛皮的防具', 0, 2, 0)
armor3 = Equipment(3, '周钲奇的脸皮', 0, 2, 0)
armors = [armor0, armor1, armor2, armor3]


def personal_information():
    print('\n')
    print(player0.name, end=' ')
    print('Lv', player0.level)
    print('HP:', player0.HP)
    print('MP:', player0.MP)
    print(player0.equipment[0].name, player0.equipment[1].name, player0.equipment[2].name)


print(weapons[0].name)
